const DeliverManagement = () => import('@/modules/shipment/views/deliverManagement.vue')
const DeliverDetail = () => import('@/modules/shipment/views/deliverDetail.vue')
const DeliverAdd = () => import('@/modules/shipment/views/deliverAdd.vue')
const DeliverEdit = () => import('@/modules/shipment/views/deliverAdd.vue')

const parentRouter = [
  {
    label: '发货协同',
    path: ''
  }
]

const routes = [
  {
    path: '/shipment/deliverManagement',
    name: 'DeliverManagement',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '送货管理',
      keepAlive: true,
      parentTitle: [...parentRouter]
    },
    component: DeliverManagement
  },
  {
    path: '/shipment/deliver/Detail',
    name: 'DeliverDetail',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '送货单详情',
      keepAlive: true,
      parentTitle: [...parentRouter]
    },
    component: DeliverDetail
  },
  {
    path: '/shipment/deliver/Add',
    name: 'DeliverAdd',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '送货单新增',
      keepAlive: true,
      parentTitle: [...parentRouter]
    },
    component: DeliverAdd
  },
  {
    path: '/shipment/deliver/edit',
    name: 'DeliverEdit',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '送货单编辑',
      keepAlive: true,
      parentTitle: [...parentRouter]
    },
    component: DeliverEdit
  }
]
export default routes
